﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GetContentProperty.aspx.cs"
    Inherits="WinnerCMS.WebUI.Admin.Window.GetContentProperty" %>

<!doctype html>
<html>
<head id="Head1" runat="server">
    <title>属性</title>
    <meta charset="utf-8">
    <meta content="no-cache" http-equiv="Pragma" />
    <%: Scripts.Render("~/Scripts/AdminBase") %>
    
    
    <%: Styles.Render("~/Content/Bootstrap/css") %>
    <style type="text/css">
        .BB
        {
            border: 1px solid #FFFFFF;
            background-color: #FFFFFF;
        }
        
        body
        {
            margin-bottom: 0px;
            margin-left: 2px;
            margin-right: 2px;
            margin-top: 0px;
        }
    </style>
    <script type="text/javascript">


        function ClickRetrun(v)
        {
            parent.$("#" + Request.QueryString("Control")).val(v);

            parent.$("#dialog-modal").dialog("close");
        }
 
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div style="width: 450px">
                <div class="input-group"><asp:TextBox ID="txtKeyWord" runat="server" CssClass="form-control"></asp:TextBox>
                <span class="input-group-btn"><asp:Button ID="btnSearch" runat="server" Cssclass="btn btn-default" OnClick="btnSearch_Click"
                    Text="搜索" /></span></div>
                <asp:GridView ID="GV_List" runat="server" AutoGenerateColumns="False" DataKeyNames="ID"
                    Width="100%" GridLines="None" CssClass="table table-bordered table-condensed table-hover">
                    <Columns>
                        <asp:BoundField DataField="TagName" HeaderText="Tag" />
                        <asp:TemplateField HeaderText="选择">
                            <ItemTemplate>
                                <input id="Button1" type="button" class="btn btn-default" value="选择" onclick='ClickRetrun("<%# Eval("TagName") %>");' />
                            </ItemTemplate>
                            <HeaderStyle Width="100px" />
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                    </Columns>
                    <HeaderStyle CssClass="HeaderStyle" />
                </asp:GridView>
                <WinnerCMS:PageNavigation ID="PageNavigation1" runat="server" ShowCustomInfoSection="Never"
                    OnPageChanging="PageNavigation1_PageChanging" ShowPageIndexBox="Never" Width="428px">
                </WinnerCMS:PageNavigation>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
